package entity

import (
	"time"
)

type CloudOrderReq struct {
	ID        int64     `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true" json:"id,omitempty"`
	UserID    int64     `gorm:"column:user_id;type:bigint;comment:'用户ID'" json:"user_id,omitempty"`                 // '用户ID'
	Number    string    `gorm:"column:number;type:character varying(255);comment:'订单号'" json:"number,omitempty"`    // '订单号'
	State     int16     `gorm:"column:state;type:smallint;comment:'订单状态/1完成/0等待，取消'" json:"state,omitempty"`        // '订单状态/1完成/0等待，取消'
	Price     int32     `gorm:"column:price;type:integer;comment:'价格'" json:"price,omitempty"`                      // '价格'
	Pay       int64     `gorm:"column:pay;type:bigint;comment:'付款'" json:"pay,omitempty"`                           // '付款'
	PayAt     time.Time `gorm:"column:pay_at;type:timestamp with time zone;comment:'付款时间'" json:"pay_at,omitempty"` // '付款时间'
	Note      string    `gorm:"column:note;type:character varying(255);comment:'备注'" json:"note,omitempty"`         // '备注'
	PlanID    int64     `gorm:"column:plan_id;type:bigint;comment:'套餐id'" json:"plan_id,omitempty"`                 // '套餐id'
	PaymentID int64     `gorm:"column:payment_id;type:bigint;comment:'支付方式'" json:"payment_id,omitempty"`           // '支付方式'
	Period    int16     `gorm:"column:period;type:smallint;comment:'周期'" json:"period,omitempty"`                   // '周期'
}
